﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Furion.CMS.Core.Base;

namespace $rootnamespace$.Services
{
    public class $safeitemrootname$ : BaseSortParams
    {
        /// <summary>
        /// 创建时间
        /// </summary>
        public SortMode? CreateTime { get; set; }

        public override SortInfo GetSort()
        {
            SortInfo result = default;
            if (CreateTime.HasValue)
            {
                result = new SortInfo { Field = nameof(CreateTime), Mode = CreateTime.Value };
            }
            return result;
        }
    }
}
